using System;
using System.Data;
using System.Collections.Generic;
using System.ServiceModel;
using eTMS.DAO;
namespace eTMS.Services{
	/********************************BEGIN QuanHuyenService****************************************/
	///<summary>
	/// <para>Author: Auto generated class by CSharp Code Generator v2.0</para>
	/// <para>Date:27/10/2011 56:03:12</para>
	/// <para>Class Name: QuanHuyenService</para>
	/// <para>Description: </para>
	///</summary>

	
	public partial class QuanHuyenService : IQuanHuyenService{


		#region Select functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectOne</para>
		/// <para>Input: QuanHuyen_ID</para>
		/// <para>Output: QuanHuyenEntity</para>
		///</summary>
		public QuanHuyenEntity SelectOne(int QuanHuyen_ID){
			QuanHuyenDAO dao = new QuanHuyenDAO();
			return dao.SelectOne(QuanHuyen_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectOneByMaQuanHuyen</para>
		/// <para>Input: MaQuanHuyen</para>
		/// <para>Output: QuanHuyenEntity</para>
		///</summary>
		public QuanHuyenEntity SelectOneByMaQuanHuyen(string MaQuanHuyen){
			QuanHuyenDAO dao = new QuanHuyenDAO();
			return dao.SelectOneByMaQuanHuyen(MaQuanHuyen);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectAll</para>
		/// <para>Input: </para>
		/// <para>Output: List of QuanHuyenEntity</para>
		///</summary>
		public List<QuanHuyenEntity> SelectAll(){
			QuanHuyenDAO dao = new QuanHuyenDAO();
			return dao.SelectAll();
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectAllDS</para>
		/// <para>Input: </para>
		/// <para>Output: DataSet</para>
		///</summary>
		public DataSet SelectAllDS(){
			QuanHuyenDAO dao = new QuanHuyenDAO();
			return dao.SelectAllDS();
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectAll</para>
		/// <para>Input: </para>
		/// <para>Output: List of QuanHuyenEntity</para>
		///</summary>
		public List<QuanHuyenEntity> SelectAllFilter(string strFilter){
			QuanHuyenDAO dao = new QuanHuyenDAO();
			return dao.SelectAllFilter(strFilter);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectAllDS</para>
		/// <para>Input: </para>
		/// <para>Output: DataSet</para>
		///</summary>
		public DataSet SelectAllDSFilter(string strFilter){
			QuanHuyenDAO dao = new QuanHuyenDAO();
			return dao.SelectAllDSFilter(strFilter);
		}
		#endregion

		#region Insert functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: Save</para>
		/// <para>Input: QuanHuyenEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Save(QuanHuyenEntity o){
			QuanHuyenDAO dao = new QuanHuyenDAO();
			return dao.Save(o);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: Save</para>
		/// <para>Input: QuanHuyenEntity</para>
		/// <para>Output: QuanHuyenEntity</para>
		///</summary>
		public QuanHuyenEntity SaveRet(QuanHuyenEntity o){
			QuanHuyenDAO dao = new QuanHuyenDAO();
			dao.Save(o);
			return o;
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SaveList</para>
		/// <para>Input: List of QuanHuyenEntity</para>
		/// <para>Output: </para>
		///</summary>
		public void SaveList(List<QuanHuyenEntity> list){
			QuanHuyenDAO dao = new QuanHuyenDAO();
			dao.SaveList(list);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SaveListRet</para>
		/// <para>Input: List of QuanHuyenEntity</para>
		/// <para>Output: List of QuanHuyenEntity</para>
		///</summary>
		public List<QuanHuyenEntity> SaveListRet(List<QuanHuyenEntity> list){
			this.SaveList(list);
			return list;
		}
		#endregion

		#region Update functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: Update</para>
		/// <para>Input: QuanHuyenEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Update(QuanHuyenEntity o){
			QuanHuyenDAO dao = new QuanHuyenDAO();
			return dao.Update(o);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateList</para>
		/// <para>Input: List of QuanHuyenEntity</para>
		/// <para>Output: </para>
		///</summary>
		public void UpdateList(List<QuanHuyenEntity> list){
			QuanHuyenDAO dao = new QuanHuyenDAO();
			dao.UpdateList(list);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateTinhThanh_ID</para>
		/// <para>Input: NewTinhThanh_ID,QuanHuyen_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateTinhThanh_ID(int NewTinhThanh_ID,int QuanHuyen_ID){
			QuanHuyenDAO dao = new QuanHuyenDAO();
			return dao.UpdateTinhThanh_ID(NewTinhThanh_ID,QuanHuyen_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateMaQuanHuyen</para>
		/// <para>Input: NewMaQuanHuyen,QuanHuyen_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateMaQuanHuyen(string NewMaQuanHuyen,int QuanHuyen_ID){
			QuanHuyenDAO dao = new QuanHuyenDAO();
			return dao.UpdateMaQuanHuyen(NewMaQuanHuyen,QuanHuyen_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateTenQuanHuyen</para>
		/// <para>Input: NewTenQuanHuyen,QuanHuyen_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateTenQuanHuyen(string NewTenQuanHuyen,int QuanHuyen_ID){
			QuanHuyenDAO dao = new QuanHuyenDAO();
			return dao.UpdateTenQuanHuyen(NewTenQuanHuyen,QuanHuyen_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateGhiChu</para>
		/// <para>Input: NewGhiChu,QuanHuyen_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateGhiChu(string NewGhiChu,int QuanHuyen_ID){
			QuanHuyenDAO dao = new QuanHuyenDAO();
			return dao.UpdateGhiChu(NewGhiChu,QuanHuyen_ID);
		}
		#endregion

		#region Delete functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: Delete</para>
		/// <para>Input: QuanHuyenEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Delete(QuanHuyenEntity o){
			QuanHuyenDAO dao = new QuanHuyenDAO();
			return dao.Delete(o);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: DeleteByID</para>
		/// <para>Input: QuanHuyen_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool DeleteByID(int QuanHuyen_ID){
			QuanHuyenDAO dao = new QuanHuyenDAO();
			return dao.DeleteByID(QuanHuyen_ID);
		}
		#endregion

		#region Select join to TinhThanh functions
		#endregion

		#region Select,delete by QuanHuyen_ID functions
		#endregion

		#region Select,delete by TinhThanh_ID functions
		#endregion
	}
	/*****************************************************************************************************/
	/**********************************END QuanHuyenWebServiceBase*****************************************/
	/*****************************************************************************************************/
}

